﻿using B.S.DataBase.MyProject.Domain;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;

namespace B.S.DataBase.MyWrite.API.Appicant.Command.Approval
{
    public class CreateLeaveApplicationCommends:IRequest<APIResult<LeaveApplications>>
    {
        public int ApplicationId { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserName { get; set; }
        public int? DepId { get; set; }

        /// <summary>
        /// 请假类型
        /// </summary>
        public int LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 请假时长
        /// </summary>
        public string? Leavetime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public long Totalhours { get; set; }

        /// <summary>
        /// 请假原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 部门领导名称
        /// </summary>
        public string DepheadsName { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int Status { get; set; }



        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 审批意见
        /// </summary>
        public string? ApprovalOpinion { get; set; }

        
    }
}
